Fix BUILD_BUG_ON()
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Dec 2008 11:19:01 +0000 (11:19 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Dec 2008 11:19:01 +0000 (11:19 +0000)
commitc8e857a0aff354ff6404e5f5e237796d98457fb2
treef54a8f6934955f52aca020a91b46b620d2cc332d
parentaa9c44021251b17ad24add472751e03b5718cbde
Fix BUILD_BUG_ON()

As was noticed on the Linux side, using an array here isn't appropriate
if the condition is not a compile time constant - gcc allows such
arrays, and hence the intended effect of producing a compiler error is
not achieved in that case. Bit field widths do not know similar
language extensions, and hence always produce a compiler error.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/include/xen/lib.h